package demo.employee;

import java.util.Comparator;

public class EmployeeAgeComparator implements Comparator {
    @Override
    public int compare(Object o1, Object o2) {
        return ((Employee)o2).getAge()-((Employee)o1).getAge();
    }
}
